import { Refund, ResPage } from "@/api/interface/index";
import httpss from "@/api/http";
//退款订单接口

//获取分页查询订单退款
export const RefundPage = (parmas: Refund) => {
  console.log("获取退款订单", parmas);
  return httpss.post<ResPage<Refund>>(`/refund/page`, parmas);
};
//退款订单删除接口
export const RefundDelte = (parmas: { id: number }) => {
  return httpss.delete(`/refund/${parmas}`);
};
//导出下载
export const RefundDownload = () => {
  return httpss.get(`/refund/download`, { responseType: "blob" });
};
